﻿<Page x:Class="WpfViewBox.StackPanelWin"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="StackPanelWin" Height="298" Width="757">
    <Grid>
        <ScrollViewer HorizontalScrollBarVisibility="Visible"  VerticalScrollBarVisibility="Visible" CanContentScroll="True" Margin="218,100,200,87">
            <StackPanel  x:Name="sp" VerticalAlignment="Top"  Background="YellowGreen"  
                    HorizontalAlignment="Left" Orientation="Horizontal">
                <TextBlock Height="40" Width="40" Text="1"  Margin="10" Background="Aquamarine"  />
                <TextBlock Height="40" Width="40" Text="2" Margin="10" Background="Aquamarine"  />
                <TextBlock Height="40" Width="40" Text="3" Margin="10" Background="Aquamarine"  />
                <TextBlock Height="40" Width="40" Text="4"  Margin="10" Background="Aquamarine"  />
                <TextBlock Height="40" Width="40" Text="5"  Margin="10" Background="Aquamarine"  />
                <TextBlock Height="40" Width="40" Text="1"  Margin="10" Background="Aquamarine"  />
                <TextBlock Height="40" Width="40" Text="2" Margin="10" Background="Aquamarine"  />
                <TextBlock Height="40" Width="40" Text="3" Margin="10" Background="Aquamarine"  />
            </StackPanel>
        </ScrollViewer>
        <Button Content="LineDown" Height="23" HorizontalAlignment="Left" Margin="23,81,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" />
        <Button Content="LineRight" Height="23" HorizontalAlignment="Left" Margin="130,81,0,0" Name="button2" VerticalAlignment="Top" Width="75" Click="button2_Click" />
    </Grid>
</Page>
